package com.bdsy.business.controller;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang3.StringUtils;

import com.bdsy.common.utils.Result;

public class aaaa {

	
	 static boolean foo(char c){
		System.out.println(c);
		return true;
	}
	
	
	public static void main(String[] args) {
		
		/*int i = 0;
		for(foo('A') ; foo('B') && (i<2) ; foo('C')){
			i++;
			foo('D');
		}
		*/
		
		 List<Object> list = new ArrayList<>();
		 list.add("aa");
			if(list == null || list.size() == 0) {
				System.out.println("bu");
			}else{
				System.out.println("yi存在");
			}
/*		
		 List list = new ArrayList();  
		list.add("1");//在集合里存入数据
		list.add("2");
	  System.out.println(list+"--");  
//	   JSONArray jsonArray = JSONArray.fromObject(list);  
	   String json = JSONArray.fromObject(list).toString();

	   
//	   System.out.println(jsonArray);  
	   System.out.println(json+"----");  */
		/*
		String aa = "aa.jpg";
		 String suffixName=aa.substring(aa.lastIndexOf(".")).trim().toLowerCase(); 
		 String suffixName2=aa.substring(aa.lastIndexOf(".")+1).trim().toLowerCase(); 
		 System.out.println(suffixName);
		 System.out.println(suffixName2);
		 */
	/*	String str = "abc,12,3yy98,0";
		String[]  strs=str.split(",");
		for(int i=0,len=strs.length;i<len;i++){
		    System.out.println(strs[i].toString());
		}*/
		
/*		String levelImg = "icon_VIP1.jpg";
		//截取字符串头部
		String levelImgs =	StringUtils.substringBeforeLast(levelImg, ".") ;
		String head_levelIm = levelImgs.substring(0, levelImgs.length()-1);
		
		//截取字符串尾部
		String end_levelImg =	StringUtils.substringAfterLast(levelImg, ".");
		System.out.println(levelImgs);
		System.out.println(head_levelIm);
	    System.out.println(end_levelImg);
		*/
	    
/*	    List<String> name = new ArrayList();

	    name.add("xxx");

	    name.add("yyy");

	    name.add("zzz");
	    
	    System.out.println(name);*/
		
		
	
	}

}
